<!--
 * @Author: 施伟略
 * @Date: 2020-07-06 14:55:33
 * @LastEditTime: 2020-07-06 17:17:02
 * @LastEditors: Please set LastEditors
 * @Description: 微信小程序码
 * @FilePath: \JKShopping\jkshopping\src\pages\help\components\wechatAppletCode.vue
--> 
<template>
  <div class="wechatAppletCode">
    <!-- 顶部导航 -->
    <van-nav-bar title="公众号咨询" left-text="返回" left-arrow @click-left="onClickLeft" />
    <div class="content">
      <p class="title">扫码咨询~~~</p>
      <img :src="datas.data" alt="">
    </div>
  </div>
</template>

<script>
import * as api from "@/api/apiList/system/system.js";
export default {
  data() {
    return {
      datas: {} //公众号数据
    };
  },
  methods: {
    // 返回上一页
    onClickLeft() {
      this.$router.go(-1);
    },
    // 获取系统公众号接口数据
    async API_share(){
        return await api.share()
    }
  },
  async created(){
      let res = await this.API_share()
      this.datas = res.data
      console.log(this.datas)
  }
};
</script>

<style lang="scss" scoped>
@import "@/style/help/help.scss"
</style>